package com.imagine.controller.stockinfo;

import com.imagine.dal.QuerySinaStocks;
import com.imagine.entity.Stock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * Created by liangyue on 2017/9/18.
 */

@RestController
@EnableAutoConfiguration
@RequestMapping("/testboot")
public class TestBootController {
    @Autowired
    private Stock stock;
    @Autowired
    private QuerySinaStocks querySinaStocks;


//    @RequestMapping(value = "/getstock", method = RequestMethod.GET)
//    public void getStock() throws IOException{
//        querySinaStocks.querySinaStocks2("sh600000");
//    }


}
